package me.leiusual.sharing.api.model

data class Withdraw(
    val id: Long,
    val storeId: Int,
    val storeName: String,
    val accountType: String,
    val accountTypeName: String,
    val amount: Double,
    val serviceFee: Double,
    val bankCardId: String,
    val cardOwnerName: String,
    val bankAddress: String,
    val auditStatus: AuditStatus,
    val auditStatusName: String,
    val auditNote: String?, // 审核备注
    val bankCode: String?,
    val withdrawTime: String?,
    val statusText: String,
    val createTime: String
) {

  // AuditStatus属性的变化：
  // NOT_APPLY状态，允许删除和申请审核；
  // AUDITING和AUDIT_FAIL状态，允许撤回；
  // AUDIT_SUCCESS状态，不允许用户操作；

  enum class AuditStatus(val description: String) {
    NOT_APPLY("状态，允许删除和申请审核"),
    AUDITING("状态，允许撤回"),
    AUDIT_FAIL("状态，允许撤回"),
    AUDIT_SUCCESS("状态，不允许用户操作")
  }
}